package com.xitest.designpattern.decorate_observer.guava;

import com.google.common.eventbus.Subscribe;

public class GperTeacher {

    private String name;
    private String desc;

    @Subscribe
    public void notice(Question question){
        System.out.println("====================="+ getName() +"老师，收到一个通知====================");
        System.out.println(question);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
